﻿using QMERP.SeedWork;

namespace QMERP.Domain.Entities
{
    /// <summary>
    /// 调拨单详情
    /// </summary>
    public partial class TransferOrderDetail : Entity
    {
        public TransferOrderDetail() 
        {
            TransferOrderDetail_LensDetails = new HashSet<TransferOrderDetail_LensDetail>();
        }
        /// <summary>
        /// 调拨单Id
        /// </summary>
        public long TransferOrderId { get; set; }
        /// <summary>
        /// 转出仓库Id
        /// </summary>
        public long OutWarehouseId { get; set; }
        /// <summary>
        /// 转入仓库Id
        /// </summary>
        public long InWarehouseId { get; set; }
        /// <summary>
        /// 镜种Id
        /// </summary>
        public long LensId { get; set; }

        /// <summary>
        /// 调拨单
        /// </summary>
        public virtual TransferOrder? TransferOrder { get; set; }
        /// <summary>
        /// 转出仓库
        /// </summary>
        public virtual Warehouse? OutWarehouse { get; set; }
        /// <summary>
        /// 转入仓库
        /// </summary>
        public virtual Warehouse? InWarehouse { get; set; }
        /// <summary>
        /// 镜种
        /// </summary>
        public virtual Lens? Lens { get; set; }
        /// <summary>
        /// 调拨单详情的镜种详情列表
        /// </summary>
        public virtual ICollection<TransferOrderDetail_LensDetail> TransferOrderDetail_LensDetails { get; set; }
    }
}
